/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package session02;

import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;

/**
 *
 * @author macbookpro
 */
public class JScrollPaneTest extends JFrame {
    
    private JScrollPane scroll;
    private JTextArea area;
    
    public JScrollPaneTest(){
        super("JScrollPane Test");
        
        area = new JTextArea();
        scroll = new JScrollPane(area);
        
//        this.add(area);
        this.add(scroll);
        
        this.setSize(400, 300);
        super.setVisible(true);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }
    
    public static void main(String[] args) {
        JScrollPaneTest jspt = new JScrollPaneTest();
        
    }
}
